﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/EzDesk.Core.Model" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/EzDesk.Core.Model" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="SimpleUser">
    <xs:sequence>
      <xs:element minOccurs="0" name="Dept" nillable="true" type="tns:Dept" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Position" nillable="true" type="tns:Position" />
      <xs:element minOccurs="0" name="UserName" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SimpleUser" nillable="true" type="tns:SimpleUser" />
  <xs:complexType name="Dept">
    <xs:sequence>
      <xs:element minOccurs="0" name="DeptName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Group" nillable="true" type="tns:Group" />
      <xs:element minOccurs="0" name="GroupId" nillable="true" type="ser:guid" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Dept" nillable="true" type="tns:Dept" />
  <xs:complexType name="Group">
    <xs:sequence>
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element minOccurs="0" name="Memberstring" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PermissionGroup" nillable="true" type="tns:ArrayOfPermission_Group" />
      <xs:element minOccurs="0" name="Type" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Group" nillable="true" type="tns:Group" />
  <xs:complexType name="ArrayOfPermission_Group">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Permission_Group" nillable="true" type="tns:Permission_Group" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfPermission_Group" nillable="true" type="tns:ArrayOfPermission_Group" />
  <xs:complexType name="Permission_Group">
    <xs:sequence>
      <xs:element minOccurs="0" name="Group" nillable="true" type="tns:Group" />
      <xs:element minOccurs="0" name="GroupId" type="ser:guid" />
      <xs:element minOccurs="0" name="HasPermission" type="xs:boolean" />
      <xs:element minOccurs="0" name="Permission" nillable="true" type="tns:Permission" />
      <xs:element minOccurs="0" name="PermissionId" type="ser:guid" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Permission_Group" nillable="true" type="tns:Permission_Group" />
  <xs:complexType name="Permission">
    <xs:sequence>
      <xs:element minOccurs="0" name="DefaultDeny" type="xs:boolean" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PermissionGroup" nillable="true" type="tns:ArrayOfPermission_Group" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Permission" nillable="true" type="tns:Permission" />
  <xs:complexType name="Position">
    <xs:sequence>
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element minOccurs="0" name="Priority" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Position" nillable="true" type="tns:Position" />
</xs:schema>